//
//  XTStrategy.m
//  BeautifulHome
//
//  Created by dlios on 15-5-13.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTStrategy.h"

@implementation XTStrategy
- (void)dealloc
{
    [_photos release];
    [_sId release];
    [_commentNum release];
    [_title release];
    [_bookmarkNum release];
    [_sDescription release];
    [_featured release];
    [_date release];
    [_user release];
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.photos forKey:@"photos"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.sDescription forKey:@"description"];
    [aCoder encodeObject:self.user forKey:@"user"];
    [aCoder encodeObject:self.sId forKey:@"sId"];
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.photos = [aDecoder decodeObjectForKey:@"photos"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.sDescription = [aDecoder decodeObjectForKey:@"description"];
        self.user = [aDecoder decodeObjectForKey:@"user"];
        self.sId = [aDecoder decodeObjectForKey:@"sId"];
    }
    return self;
}
@end
